/******************************************************************************
** @file	test_wmi_filedirectory.cpp
** @author  Arturo Aguilar Tapia
**
** @date	Agost 20, 2010
**
** @desc	This test must list all file directories
*			
**
******************************************************************************/

#include "../Unit--/unit--.h"
#include "wmi_reader.h"
#include "WMI_Registry.h"
#include "WMI_Result.h"
#include "WMI_FileDirectory.h"
#include <comdef.h>
#include <Wbemidl.h>
#include <cstring>
#include <iostream>

# pragma comment(lib, "wbemuuid.lib")

using namespace unit_minus;

testSuite(WMIReaderSuite)

testCase(FileDirectoryTest, WMIReaderSuite)
{
    cout << "---------- Start FileDirectory Test ----------" << endl;
	WMI_Result<WMI_Disk> dir;
	WMI_Reader::getRootDirectories(dir);

	dir.showObjects();

	assertTrue(dir.getObjects().size() >= 0);

	WMI_Result<WMI_FileDirectory> direc; 
	WMI_Reader::getFiles(L"c:\\",direc);

	direc.showObjects();
	
    cout << "---------- End FileDirectory Test ----------" << endl << endl;
    system("PAUSE");
    
}